package com.itheima.dao.impl;

import com.alibaba.druid.pool.DruidDataSource;
import com.itheima.dao.BookDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import javax.sql.DataSource;

@Component
public class BookDaoImpl implements BookDao {

    @Autowired
    private DataSource dataSource;

    public void save() {
        System.out.println(dataSource.toString());
        System.out.println("book dao running...");
    }


}
/*
*https://gitee.com/robbery/Spring_anno.git
* https://gitee.com/robbery/spring_IOC.git
*
* */